package com.ssy.lingxi.order.repository;

import com.ssy.lingxi.order.entity.BaseOrderRuleDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 平台规则配置Jpa仓库
 * @author 万宁
 * @version 2.0.0
 * @date 2021-08-10
 */
@Repository
public interface BaseOrderRuleRepository extends JpaRepository<BaseOrderRuleDO, Long>, JpaSpecificationExecutor<BaseOrderRuleDO> {
    List<BaseOrderRuleDO> findByRuleTypeAndStatus(Integer ruleType, Integer status);
}
